package com.chanjiedata.changbs.adapter;

import android.content.Context;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.chanjiedata.changbs.R;
import com.chanjiedata.changbs.proto.Statistics;

import java.util.List;

/**
 * 文件名 : TaijunAdapter
 * 创建者 : MangoWang
 * 创建日期 : 2019/12/5 20:45
 * 微信 : MangoWaWang
 * 邮箱 : 763482205@qq.com
 * 描述 : TODO
 */
public class TaijunAdapter extends BaseQuickAdapter<Statistics.member_average, BaseViewHolder> {
    public TaijunAdapter(Context context, List<Statistics.member_average> dataList) {
        super(R.layout.item_tai_jun, dataList);
    }

    @Override
    protected void convert(BaseViewHolder helper, Statistics.member_average item) {

        helper.setText(R.id.tv_name,(helper.getLayoutPosition()+1) +"." + item.getName())
                .setText(R.id.tv_phone,item.getMobile())
                .setText(R.id.tv_money,item.getAverageAmount());

    }
}
